package com.gjxx.common.tcp;

import com.alibaba.fastjson2.annotation.JSONField;
import io.netty.channel.Channel;
import lombok.Data;
import java.io.Serializable;

@Data
public class PackageData implements Serializable {
    /**
     * 16byte 消息头
     */
    protected MsgHeader msgHeader;

    // 消息体字节数组
    @JSONField(serialize=false)
    protected byte[] msgBodyBytes;
    /**
     * 校验码 1byte
     */
    protected int checkSum;
    /**
     * 计算的校验码
     */
    protected int calculatedCheckSum;

    @JSONField(serialize=false)
    protected Channel channel;
}
